//
//  TempViewController.swift
//  
//
//  Created by macs on 15/11/16.
//
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.randomColor()
        // Do any additional setup after loading the view.
        
        title = "\(navigationController?.childViewControllers.count)个页面"
    }

    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        let temp = TempViewController()
        
        navigationController?.pushViewController(temp, animated: true)
    }
    
    
}
